package io1;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;


public class OSWWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("fos.put");
        OutputStreamWriter oos=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        oos.write("刘思甜去小日本打仗");
        oos.write("，打的小日本哭爹喊娘");
        oos.write("，回来要求他爹给他族谱单开一页");
        System.out.println("写入完毕");
        oos.close();


    }
}
